<article class="module width_full">
    <header><h3>{#title#}</h3></header>
        <div class="module_content">
            <div class="content">
                <fieldset>
                    <label>{#title_cats#}</label>
					<table cellpadding="2" style="width:99%; margin:5px;" cellspacing="2" border="0">
						<tbody>
                            {if !empty($shop)}
								{foreach from=$shop item=item}
									{literal}
									<script type="text/javascript">
										$(function() {
											$(".inv_button_{/literal}{$item.categoryId}{literal}").click(function() {
												var id 					= '{/literal}{$item.categoryId}{literal}';
												var dataString	= 'shopcat='+ id;
												var parent = $(this).parent();
											$.ajax({
												type: "POST",
												url: "_javascript/ajax_livedit.php",
												data: dataString,
												cache: false,
												success: function()
													{
														$("#maininv_{/literal}{$item.categoryId}{literal}").fadeOut('slow', function() {$("#maininv_{/literal}{$item.categoryId}{literal}").remove();});
													}
											});
											return false;
											});
										});
									</script>
									{/literal}
								<tr id="maininv_{$item.categoryId}">
									<td class="body">&raquo; <a href="index.php?mod=shop&page=cat&id={$item.categoryId}"><b>{$item.categoryName}</b></a></td>
									<td class="body"><a href="#" style="float:right; margin-right:5px;" class="inv_button_{$item.categoryId}"><img src="_images/icons/cross.png" /></a></td>

								</tr>
								{/foreach}	
                            {/if}
						</tbody>
					</table>
                </fieldset>
			</div>
        </div>
	<footer>
		<div class="submit_link">
			<a href="index.php?mod=shop&page=add"><input type="submit" value="{#add_cat#}" class="alt_btn"></a>
		</div>
	</footer>
</article>
